package com.suneee.refund.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.suneee.orm.GenericDao;
import com.suneee.refund.dao.RefundCheckInfoDao;
import com.suneee.refund.entity.RefundCheckInfo;

@Repository("refundCheckInfoDao")
public class RefundCheckInfoDaoImpl extends GenericDao<RefundCheckInfo, Integer>implements RefundCheckInfoDao {

	@Override
	public RefundCheckInfo getCheckInfoByRefundId(String refundId) {
		// TODO Auto-generated method stub
		String sql = "select * from t_refund_check_info where refund_id = ?";
		List<RefundCheckInfo> list = this.executeQuery(sql, refundId);
		if(list == null || list.isEmpty())
			return null;
		return list.get(0);
	}


}
